#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"
void TestHeap1()
{
	HP hp;
	HPInit(&hp);

	HPPush(&hp, 1);
	HPPush(&hp, 2);
	HPPush(&hp, 13);
	HPPush(&hp, 4);
	HPPush(&hp, 65);
	HPPush(&hp, 95);
	HPPush(&hp, 40);

	while (!HPEmpty(&hp))
	{
		printf("%d ", HPTop(&hp));
		HPPop(&hp);
	}
	HPDestroy(&hp);
}
void TestHeapSort()
{
	int a[] = { 4,7,10,1,34,20,37,68,17,5 };
	HeapSort(a, sizeof(a) / sizeof(int));
}
int main()
{
	//TestHeap1();
	TestHeapSort();
	return 0;
}